package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TExpenditureDownMapper;
import com.ruoyi.system.domain.TExpenditureDown;
import com.ruoyi.system.service.ITExpenditureDownService;

/**
 * 纵向、横向到校科研经费数_下Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class TExpenditureDownServiceImpl implements ITExpenditureDownService 
{
    @Autowired
    private TExpenditureDownMapper tExpenditureDownMapper;

    /**
     * 查询纵向、横向到校科研经费数_下
     * 
     * @param id 纵向、横向到校科研经费数_下主键
     * @return 纵向、横向到校科研经费数_下
     */
    @Override
    public TExpenditureDown selectTExpenditureDownById(Long id)
    {
        return tExpenditureDownMapper.selectTExpenditureDownById(id);
    }

    /**
     * 查询纵向、横向到校科研经费数_下列表
     * 
     * @param tExpenditureDown 纵向、横向到校科研经费数_下
     * @return 纵向、横向到校科研经费数_下
     */
    @Override
    public List<TExpenditureDown> selectTExpenditureDownList(TExpenditureDown tExpenditureDown)
    {
        return tExpenditureDownMapper.selectTExpenditureDownList(tExpenditureDown);
    }

    /**
     * 新增纵向、横向到校科研经费数_下
     * 
     * @param tExpenditureDown 纵向、横向到校科研经费数_下
     * @return 结果
     */
    @Override
    public int insertTExpenditureDown(TExpenditureDown tExpenditureDown)
    {
        return tExpenditureDownMapper.insertTExpenditureDown(tExpenditureDown);
    }

    /**
     * 修改纵向、横向到校科研经费数_下
     * 
     * @param tExpenditureDown 纵向、横向到校科研经费数_下
     * @return 结果
     */
    @Override
    public int updateTExpenditureDown(TExpenditureDown tExpenditureDown)
    {
        return tExpenditureDownMapper.updateTExpenditureDown(tExpenditureDown);
    }

    /**
     * 批量删除纵向、横向到校科研经费数_下
     * 
     * @param ids 需要删除的纵向、横向到校科研经费数_下主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureDownByIds(Long[] ids)
    {
        return tExpenditureDownMapper.deleteTExpenditureDownByIds(ids);
    }

    /**
     * 删除纵向、横向到校科研经费数_下信息
     * 
     * @param id 纵向、横向到校科研经费数_下主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureDownById(Long id)
    {
        return tExpenditureDownMapper.deleteTExpenditureDownById(id);
    }
}
